package thread;

public class CurrentThreadDemo {
    public static void main(String[] args) {
        Thread main = Thread.currentThread();
        System.out.println("主线程:" + main);
        dosome();
        System.out.println("主线程执行完main方法后就结束了");
    }

    public static void dosome() {
        Thread t = Thread.currentThread();
        System.out.println("调用dosome方法的线程是:" + t);
    }
}



